package com.example.baidu_map_plugin.data;

import android.text.TextUtils;

/**
 * @author BaoQi
 * Date : 2021/2/3
 * Des:
 */
public enum MethodType {
    none,
    updateMapView,
    setMapViewCenter;

    public static MethodType getMethodType(String name) {
        if (!TextUtils.isEmpty(name)) {
            MethodType[] values = MethodType.values();
            for (MethodType value : values) {
                if (name.equalsIgnoreCase(value.name())) {
                    return value;
                }
            }
        }
        return none;
    }
}
